package com.gp.learn.ssm.base.core.security.model;

import com.google.common.collect.Lists;
import com.gp.learn.ssm.base.system.entity.BaseUser;
import lombok.Data;

import java.util.Collection;
import java.util.Map;

/**
 * 系统用户信息扩展
 */
@Data
public class UserInfo extends BaseUser {

    /**
     * 用户角色
     */
    private Collection<Map> roles = Lists.newArrayList();

    /**
     * 用户权限
     */
    private Collection<OpenAuthority> authorities = Lists.newArrayList();

    /**
     * 第三方账号
     */
    private String thirdParty;
}
